package com.atguigu.gulimail.search.vo;

import lombok.Data;

import java.util.List;

/*
封装页面所有可能传递过来的查询条件
*/
@Data
public class SearchParam {
    private String keyword;//页面传递过来的全文匹配关键字
    private Long catalog3Id;//三级分类id
    /*
    * sort = saleCount_asc/desc
    * sort = skuPrice_asc/desc
    * sort = hotScore_asc/desc
    * */
    private String sort;//排序条件
    /*
    * 好多过滤条件
    * hasStock(是否有货) skuPrice,brandId,catalog3Id,attrs(属性)
    * hasStock=0/1
    * skuPrice=1_500/?_500/500_?
    * brandId=1
    * attrs = 2_5存:6寸   多个值用：隔开
    * */
    private Integer hasStock = 1;//0无库存    1有库存
    private String skuPrice;
    private List<Long> brandId;
    private List<String> attrs;
    private Integer pageNum = 1;
    private String _queryString;//原生的所有查询条件
}
